obj-m += devled.o drvled.o

all:
	make -C /opt/kernel SUBDIRS=$(PWD) modules
	arm-cortex_a9-linux-gnueabi-gcc -shared -fpic -o libhwled.so hwled.c
	arm-cortex_a9-linux-gnueabi-gcc -o main main.c -L. -lhwled


clean:
	make -C /opt/kernel SUBDIRS=$(PWD) clean
	rm -rf *.ko
	rm -rf *.so
	rm -rf main
